package com.Ajava1704.tongbu;

import ch.qos.logback.core.net.SyslogOutputStream;

/**
 * @类名: com.Ajava1704.tongbu
 * @作者: lgt
 * @创建时间: 2020-02-10 20:29
 * @描述:
 **/
public class TestR2 implements Runnable{

    private Test00 test00;
    private Integer bb;


    @Override
    public void run() {
        TestR2.test2();
    }



    public synchronized void test1(){
        for (int i=0;i<10;i++){
            System.out.println("======"+Thread.currentThread().getName()+"======"+i);
        }
    }

    public static synchronized void test2(){
        for (int i=0;i<10;i++){
            System.out.println("======"+Thread.currentThread().getName()+"======"+i);
        }
    }
}
